import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserService } from './services/user.service';
import { ProductService } from './services/product.service';
import { OrderService } from './services/order.service';
import { MenuService } from './services/menu.service';
import { DepartmentService } from './services/department.service';
import { RoleService } from './services/role.service';
import { DictionaryService } from './services/dictionary.service';
import { SettingsService } from './services/settings.service';
import { UserController } from './controllers/user.controller';
import { ProductController } from './controllers/product.controller';
import { OrderController } from './controllers/order.controller';
import { MenuController } from './controllers/menu.controller';
import { DepartmentController } from './controllers/department.controller';
import { RoleController } from './controllers/role.controller';
import { DictionaryController } from './controllers/dictionary.controller';
import { SettingsController } from './controllers/settings.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ormConfig } from './config/ormconfig';

@Module({
  imports: [TypeOrmModule.forRoot(ormConfig)],
  controllers: [
    AppController,
    UserController,
    ProductController,
    OrderController,
    MenuController,
    DepartmentController,
    RoleController,
    DictionaryController,
    SettingsController,
  ],
  providers: [
    AppService,
    UserService,
    ProductService,
    OrderService,
    MenuService,
    DepartmentService,
    RoleService,
    DictionaryService,
    SettingsService,
  ],
})
export class AppModule {}
